home *** CD-ROM | disk | FTP | other *** search
/ A.C.E. 2 / ACE CD 2.iso / FILES / DOCS / AMOSDOC.LHA / AmosHyperBook.dms / in.adf / Errors / ALLIANCE-2 < prev    next >
Encoding:
Text File  |  1992-03-21  |  4.7 KB  |  143 lines

  1.  
  2.  
  3. PROGRAM ERRORS
  4.  
  5. Whenevever you run one of your programs,or check it with the
  6. test command from the menu window ,AMOS performs a complete test of all
  7. the various instructions.This allows you to remove most of the errors
  8. straight from the editor withoutthe inconvenience of
  9.  executing your program
  10. Here is a full list of these error messages:
  11.  
  12. Array all ready dimensioned:It is only possible to dimension
  13. the same array once in your basic program.
  14.  
  15. Array not dimensioned: The element you specified in
  16. the expression does not belong to a previously dimensioned array.
  17.  
  18. DATA must start at the beginning of a line: Any DATA
  19. statements in your program must be placed at the absolute
  20. start of a line (excluding LABEL definitions)
  21.  
  22. DO without LOOP:The DO and LOOP statements are used in pairs
  23. Each DO structure must be terminated by a single LOOP command
  24.  
  25. ELSE without ENDIF:Youve omiited the final ENDIF command
  26. from a structured IF test.
  27.  
  28. ELSE without IF:The ELSE statement can only be used inside a
  29. structured test.
  30.  
  31. ENDIF without IF :An ENDIF command has been found in your
  32. program which does not correspond to an appropriate IF
  33. statement.
  34.  
  35. Extension not loaded: Youve attempted to run a program
  36.  which incorporates one of the new commands provided by
  37.  an extension file.Check that the relevant extensions
  38.  have been installed on your boot disk and that the
  39.  extensions are selected for use from the CONFIG accessory.
  40.  
  41. FOR without matching NEXT: A FOR command is not followed
  42. in the program by the expected NEXT statement.
  43.  
  44. IF without ENDIF:The instructions inside a structured
  45. IF test should always be terminated by a single ENDIF statement
  46. . Dont confuse these tests with the IF...THEN command-they
  47. are completely different.
  48.  
  49. Illegal number of parameters:You have attempted to to
  50. enter the wrong number of values into an
  51. instruction or proceedure.
  52.  
  53. LOOP without DO:A LOOP command has been detected which
  54. does not match a corresponding DO statement.
  55.  
  56. LABEL defined twice: Each label or proceedure can only be
  57. defined once in your program.
  58.  
  59. Bad structure: Any nested loops must be placed COMPLETELY
  60. inside each other. Buty its illegal for loops to CROSS
  61.       EXAMPLE:
  62. Do
  63.    If A=B
  64. Loop
  65.    Print A
  66. Endif
  67. THIS IS NOT ALLOWED
  68.  
  69. NEXT withot FOR:AMOS has encounterd a NEXT instruction
  70. which does not match up with a previous FOR command.
  71.  
  72. No THEN in a structured test: The IF...THEN command
  73. cannot be placed inside a structured test.
  74. Use IF. ..ENDIF instead.
  75.  
  76. No jumps allowed in the middle of a loop!:(could cause
  77. havock at Alton Towers..Protocol)You cant jump directly
  78. inside a loop using a GOTO or GOSUB statement,however
  79. once you are within a loop,you can jump out of it.
  80.  
  81. Not enough loops to exit:The loop counter you specified
  82. in a a EXIT IF command is greater than the number of
  83. active loops.
  84.  
  85. Out of memory:During the test process this error may
  86. occur if AMOS cannot reserve the required amount of
  87. variable buffer space due to a lack of memory
  88.  (see SET BUFFER)
  89.  
  90. Proceedures limits must be alone on a line: The
  91. PROCEEDURE and END PROC statements must start on their own line.
  92.  
  93. Proceedure not closed:The END PROC statement is missing
  94. from one of your proceedures.
  95.  
  96. Proceedure not opened: An ENDPROC statement has been
  97. discoverd with no corresponding PROCEEDURE definition.
  98. REPEAT without matching UNTIL statement.
  99.  
  100. Shared must be alone on a line: The SHARED command
  101. must be the only statement on the current line.
  102.  
  103. Syntax error:The syntax (grammar) of the current line
  104. is wrong in some way.Look up the correct format in
  105.  the manual.
  106.  
  107. Tƒhis array is not defined in the main program:You have
  108. tried to access an array inside a proccedure which has
  109. not been dimensioned in the main program.
  110.  
  111. This instruction must be used within a proceedure:The
  112. SHARED command can only be used once INSIDE a
  113.  proceedure definition.
  114.  
  115. This variable is already defined as shared: You cannot define
  116.  the same variable more than once in a single proceedure.
  117.  
  118. UNTIL without REPEAT: The UNTIL command does not match
  119.  a previous REPEAT command in your program.
  120.  
  121. Undefined label: AMOS cannot find the label you specified
  122.  in the instruction.(Hes gone down the wine cellar to find that
  123.  rare vintage for you...Protocol)
  124.  
  125. Undefined proceedure:The proceedure you have called does
  126.  not presently exist in your program.
  127.  
  128. Use empty brackets when defining a shared array:To
  129.  define an array as SHARED,use a command like:
  130.          Shared Array()
  131. Iƒt is illegal to add the dimensions of the array as well.
  132.  
  133. Variable buffer cant be changed in the middle of a program!:The
  134.  SET BUFFER command must always be the
  135.  first line of your program,excluding REMS.
  136.  
  137. WEND without WHILE: The WEND statement does not match a
  138.  previous WHILE command in your program.
  139.  
  140. WHILE without matching WEND: AMOS cannot find a
  141.  corresponding WEND statement to match up with the current WHILE.
  142.  
  143.